package com.example.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author sunfayun
 * @version 1.0
 * @since 2023/10/16
 */
@Data
public class UserCourseVo {

    @Schema(description = "主键id")
    private Long id;

    /**
     * 编号
     */
    @Schema(description = "编号")
    private String userNo;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String name;

    /**
     * 年龄
     */
    @Schema(description = "年龄")
    private Integer age;

    List<CourseInfoVo> courseInfoVoList;

    @Data
    public static class CourseInfoVo {

        @Schema(description = "主键id")
        private Long courseId;

        /**
         * 课程名称
         */
        @Schema(description = "课程名称")
        private String courseName;

        /**
         * 教师
         */
        @Schema(description = "教师")
        private String teacher;

    }
}


